package com.dayuanit.atm.dao;

import java.sql.Connection;

import com.dayuanit.atm.domain.User;

public interface UserDao {
	
	int addUesr(User user, Connection conn);
	
	User getUserByCardNum(String cardNum, Connection conn);
	
	int updateBalance(int amount, String cardNum, Connection conn);
	
	int updateBalance(int amount, String cardNum, int oldVersion, Connection conn);
	
	User getUserByCardNumForUpdate(String cardNum, Connection conn);

}
